package pattern.observer.guava;

import com.google.common.eventbus.Subscribe;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public class WeixinUser {
    private String name;

    @Subscribe
    public void getMessage(Object arg) {
        System.out.println(this.name + "接收到消息：" + arg);
    }
}
